package com.duan.laugh.msg.api.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息发送
 * </p>
 *
 * @author liutf
 * @since 2019-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("msg_send")
@ApiModel(value = "MsgSend对象", description = "消息发送")
public class MsgSend implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "接收对象（9部门、10岗位、11角色、12用户）")
    private Integer receiveObject;

    @ApiModelProperty(value = "接受对象的值（多个用逗号分开）")
    private String receiveObjectValue;

    @ApiModelProperty(value = "类型（5短信、7邮件、6微信、8站内消息）")
    private Integer type;

    @ApiModelProperty(value = "模板id")
    private Long templateId;

    @ApiModelProperty(value = "参数")
    private String params;

    @ApiModelProperty(value = "发送时间")
    private LocalDateTime sendTime;

    @ApiModelProperty(value = "发送状态（已发送、未发送）")
    private Integer status;

    @ApiModelProperty(value = "(提醒或代办的id)")
    private Integer fkId;

    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
